/************************************************************
  *  * EaseMob CONFIDENTIAL 
  * __________________ 
  * Copyright (C) 2013-2014 EaseMob Technologies. All rights reserved. 
  *  
  * NOTICE: All information contained herein is, and remains 
  * the property of EaseMob Technologies.
  * Dissemination of this information or reproduction of this material 
  * is strictly forbidden unless prior written permission is obtained
  * from EaseMob Technologies.
  */

#import <UIKit/UIKit.h>
#import "EMChatManagerDefs.h"




@protocol ChatViewControllerDelegate <NSObject>

- (NSString *)avatarWithChatter:(NSString *)chatter;
- (NSString *)nickNameWithChatter:(NSString *)chatter;
@optional
//聊天人的资料改变,改变所有页面的上的资料数据
- (void)chatUserTypeDataChangeUser:(MLUser *)chatUser;
@end



@interface ChatViewController : UIViewController

@property (nonatomic, strong) MLUser *chatUser;
//聊天的用户没有查到,则有isNullChatUser,且需要重新请求该用户信息
@property  BOOL isNullChatUser;

//@property (nonatomic, strong) MLDate *date;

@property (nonatomic, strong) NSMutableArray *dateLaunchList;
//@property BOOL is;//(YES)从前面进来需要直接打电话



@property (strong, nonatomic, readonly) NSString *chatter;
@property (nonatomic) BOOL isInvisible;
//@property BOOL isPay;

@property (nonatomic, assign) id <ChatViewControllerDelegate> delelgate;

- (instancetype)initWithChatter:(NSString *)chatter isGroup:(BOOL)isGroup;
- (instancetype)initWithChatter:(NSString *)chatter conversationType:(EMConversationType)type;

- (void)reloadData;

- (void)hideImagePicker;

-(void)sendTextMsg:(NSDictionary *)notification;

@end
